
using Qdb.CS.Internal.Messages;
using Qdb.Internal;

namespace Qdb.CS.Internal.Messages
{
	/// <exclude></exclude>
	public class MVersion : Msg, IMessageWithResponse
	{
		public virtual Msg ReplyFromServer()
		{
			long ver = 0;
			ObjectContainerBase stream = Stream();
			lock (StreamLock())
			{
				ver = stream.CurrentVersion();
			}
			return Msg.IdList.GetWriterForLong(Transaction(), ver);
		}
	}
}
